// 重置样式
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

// 移动端适配
html {
  font-size: 16px;
}

// 通用样式
.page-container {
  padding: 16px;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

// 卡片样式
.ant-card {
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
}

// 按钮样式
.ant-btn {
  border-radius: 4px;
  
  &.ant-btn-circle {
    border-radius: 50%;
  }
}

// 标签样式
.ant-tag {
  border-radius: 4px;
}

// 进度条样式
.ant-progress-outer {
  .ant-progress-bg {
    border-radius: 4px;
  }
}

// 开关样式
.ant-switch {
  &.ant-switch-checked {
    background-color: @primary-color;
  }
}

// 滚动条样式
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
  
  &:hover {
    background: #a8a8a8;
  }
}

// 移动端布局
.mobile-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  
  .mobile-header {
    flex: none;
    padding: 8px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    
    .header-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
  }
  
  .mobile-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .mobile-footer {
    flex: none;
    padding: 8px 16px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    
    .footer-content {
      display: flex;
      justify-content: space-around;
      align-items: center;
    }
  }
}

// 状态栏
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 16px;
  background: #fff;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.65);
  
  .status-icons {
    display: flex;
    gap: 8px;
  }
}

// 导航栏
.nav-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(0, 0, 0, 0.65);
    text-decoration: none;
    
    .nav-icon {
      font-size: 24px;
      margin-bottom: 4px;
    }
    
    .nav-text {
      font-size: 12px;
    }
    
    &.active {
      color: @primary-color;
    }
  }
} 